#include "dialog.h"
#include "ui_dialog.h"

Dialog::Dialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::Dialog)
{
    ui->setupUi(this);

    connect(ui->push_button_01, &QPushButton::clicked, this, [=]() {
        this->accept();
    });

    connect(ui->push_button_02, &QPushButton::clicked, this, [=]() {
        this->reject();
    });

    connect(ui->push_button_03, &QPushButton::clicked, this, [=]() {
        this->done(100);
    });
}

Dialog::~Dialog()
{
    delete ui;
}
